#pragma once
#include "my_hash.h"

namespace dzp
{
	template <class K,class Hash=_Hash<K>>
	class unoredred_set
	{
		struct setofT
		{
			const K& operator()(const K& k)
			{
				return k;
			}
		};
	public:
		typedef typename hash < K, K, setofT, Hash > ::iterator iterator;
		iterator begin()
		{
			return _biao.begin();
		}
		iterator end()
		{
			return _biao.end();
		}
	   std::pair<iterator,bool> insert(const K& k)
	    {
			return _biao.insert(k);
		}
	private:
		hash<K, K, setofT, Hash> _biao;
	};
}